From 5266732a40708690cb7eefccddcc6f4abbf11b5f Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 12 Mar 2004 17:42:30 +0000 Subject: [PATCH] Duplicate icon if dynamic. (Solves crash on Mapsource with KMA corruption.) git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@734 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/waypt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gpsbabel/waypt.c b/gpsbabel/waypt.c index 4f5e66bc8..80ee78f81 100644 --- a/gpsbabel/waypt.c +++ b/gpsbabel/waypt.c @@ -50,6 +50,8 @@ waypt_dupe(const waypoint *wpt) tmp->url = xstrdup(wpt->url); if (wpt->url_link_text) tmp->url_link_text = xstrdup(wpt->url_link_text); + if (wpt->icon_descr && wpt->icon_descr_is_dynamic) + tmp->icon_descr = xstrdup(wpt->icon_descr); /* * It's important that this duplicated waypoint not appear * on the master Q. -- 2.30.2